package com.example.test1.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;


//助手接口
@AiService(
        wiringMode = EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider = "chatMemoryProviderByMongodb"
)
//绑定大模型和另一个记忆区提供者,使用自定义的记忆区提供者chatMemoryProviderByMongodb.

public interface MongodbStoreAssistant {

    String chat(@MemoryId int memoryId, @UserMessage String userMessage);
}
